
// cached javascript
var PageClass = {
bidui:function(aID,oldstring,newstring,callback,context){return new ajax_request(this.url + '?_method=bidui&_session=no','aID=' + enc(aID)+ '\r\noldstring=' + enc(oldstring)+ '\r\nnewstring=' + enc(newstring),callback, context);},
RecDraft:function(username,scorerate,aID,aDreftResult,ErrorWords,timeused,callback,context){return new ajax_request(this.url + '?_method=RecDraft&_session=rw','username=' + enc(username)+ '\r\nscorerate=' + enc(scorerate)+ '\r\naID=' + enc(aID)+ '\r\naDreftResult=' + enc(aDreftResult)+ '\r\nErrorWords=' + enc(ErrorWords)+ '\r\ntimeused=' + enc(timeused),callback, context);},
LoadArticle:function(ausername,aID2,callback,context){return new ajax_request(this.url + '?_method=LoadArticle&_session=no','ausername=' + enc(ausername)+ '\r\naID2=' + enc(aID2),callback, context);},
LoadAboutArticles:function(apID,tags,callback,context){return new ajax_request(this.url + '?_method=LoadAboutArticles&_session=no','apID=' + enc(apID)+ '\r\ntags=' + enc(tags),callback, context);},
SearchArticles:function(ausername,key,apID,acID,aDiff,aYear,aMonth,CurrentPage,callback,context){return new ajax_request(this.url + '?_method=SearchArticles&_session=no','ausername=' + enc(ausername)+ '\r\nkey=' + enc(key)+ '\r\napID=' + enc(apID)+ '\r\nacID=' + enc(acID)+ '\r\naDiff=' + enc(aDiff)+ '\r\naYear=' + enc(aYear)+ '\r\naMonth=' + enc(aMonth)+ '\r\nCurrentPage=' + enc(CurrentPage),callback, context);},
ListMyDraft:function(atitleKey,apID,acID,ausername,aYear,aMonth,CurrentPage,callback,context){return new ajax_request(this.url + '?_method=ListMyDraft&_session=no','atitleKey=' + enc(atitleKey)+ '\r\napID=' + enc(apID)+ '\r\nacID=' + enc(acID)+ '\r\nausername=' + enc(ausername)+ '\r\naYear=' + enc(aYear)+ '\r\naMonth=' + enc(aMonth)+ '\r\nCurrentPage=' + enc(CurrentPage),callback, context);},
recDiffLevel:function(aId,alevel,callback,context){return new ajax_request(this.url + '?_method=recDiffLevel&_session=no','aId=' + enc(aId)+ '\r\nalevel=' + enc(alevel),callback, context);},
getClasslist:function(apID,aOptionID,callback,context){return new ajax_request(this.url + '?_method=getClasslist&_session=no','apID=' + enc(apID)+ '\r\naOptionID=' + enc(aOptionID),callback, context);},
SaveMyNote:function(aID,ausername,mynote,callback,context){return new ajax_request(this.url + '?_method=SaveMyNote&_session=no','aID=' + enc(aID)+ '\r\nausername=' + enc(ausername)+ '\r\nmynote=' + enc(mynote),callback, context);},
SaveMyTrans:function(aID,ausername,mytrans,callback,context){return new ajax_request(this.url + '?_method=SaveMyTrans&_session=no','aID=' + enc(aID)+ '\r\nausername=' + enc(ausername)+ '\r\nmytrans=' + enc(mytrans),callback, context);},
autoreplayBBS:function(aID,Content,callback,context){return new ajax_request(this.url + '?_method=autoreplayBBS&_session=rw','aID=' + enc(aID)+ '\r\nContent=' + enc(Content),callback, context);},
autoreplayBBSTrans:function(aID,Content,callback,context){return new ajax_request(this.url + '?_method=autoreplayBBSTrans&_session=rw','aID=' + enc(aID)+ '\r\nContent=' + enc(Content),callback, context);},
url:'/ajax/ASP.PageClass,App_Web_ohw9qek_.ashx'
}
function HtmlControl(id) {
	var ele = null;
	if(typeof(id) == 'object') ele = id; else ele = document.getElementById(id);
	if(ele == null) return null;
	var _o = ele.cloneNode(true);
	var _op = document.createElement('SPAN');
	_op.appendChild(_o);	
	this._source = _op.innerHTML;
}
HtmlControl.prototype.toString = function(){ return this._source; }

function HtmlControlUpdate(func, parentId) {
var f,i,ff,fa='';
var ele = document.getElementById(parentId);
if(ele == null) return;
var args = [];
for(i=0; i<HtmlControlUpdate.arguments.length; i++)
	args[args.length] = HtmlControlUpdate.arguments[i];
if(args.length > 2)
	for(i=2; i<args.length; i++){fa += 'args[' + i + ']';if(i < args.length -1){ fa += ','; }}
f = '{"invoke":function(args){return ' + func + '(' + fa + ');}}';
ff = null;eval('ff=' + f + ';');
if(ff != null && typeof(ff.invoke) == 'function')
{
	var res = ff.invoke(args);
	if(res.error != null){alert(res.error);return;}
	ele.innerHTML = res.value;
}
}
function AjaxImage(url){var img=new Image();img.src=url;return img;}
function digi(v, c){v = v + "";var n = "0000";if(v.length < c) return n.substr(0, c-v.length) + v;return v;}
function DateTime(year,month,day,hours,minutes,seconds){if(year>9999||year<1970||month<1||month>12||day<0||day>31||hours<0||hours>23||minutes<0||minutes>59||seconds<0||seconds>59)throw("ArgumentException");this.Year = year;this.Month = month;this.Day = day;this.Hours = hours;this.Minutes = minutes;this.Seconds = seconds;}
DateTime.prototype.toString = function(){return digi(this.Year,4) + digi(this.Month,2) + digi(this.Day,2) + digi(this.Hours,2) + digi(this.Minutes,2) + digi(this.Seconds,2);}
function TimeSpan(){this.Days=0;this.Hours=0;this.Minutes=0;this.Seconds=0;this.Milliseconds=0;}
TimeSpan.prototype.toString = function(){return this.Days+'.'+this.Hours+':'+this.Minutes+':'+this.Seconds+'.'+this.Milliseconds;}
function _getTable(n,e){for(var i=0; i<e.Tables.length; i++){if(e.Tables[i].Name == n)return e.Tables[i];}return null;}
